<ion-view view-title="我的服务" class="page-bg">
  <ion-nav-bar class="bar-energized light">
    <ion-nav-back-button>
    </ion-nav-back-button>
  </ion-nav-bar>
<!--  <div class="bar bar-subheader" style="padding:0;height:2.875rem;" >
    <div class="return-tab" >
      <a class="button {{unReachOrderState}}" ng-click="chooseOrderType('unReach')">所有</a>
      <a class="button {{reachOrderState}}" ng-click="chooseOrderType('reach')">面试阶段</a>
      <a class="button {{allOrderState}}" ng-click="chooseOrderType('all')">更换人员</a>
      <a class="button {{allOrderState}}" ng-click="chooseOrderType('all')">上门确认</a>
    </div>
  </div>-->
  <ion-content direction="y" overflow-scroll="false" scrollbar-y="false">

 <!--   <div ng-if="showloading" style="margin-top:60px; text-align: center">
      <ion-spinner icon="ios" style="height: 60px; width: 60px;;"></ion-spinner>
    </div>-->
    <div class="list" ng-if="role==1">
      <a class="item"  ng-repeat="order in orderList" href="#/tab/orderdetail/{{order.id}}" >
        <span>雇员名：{{order.emp_name}}</span>
        <span>服务类型：{{order.role_name}}</span>
        <div>服务价格：{{order.price_dec}}</div>
        <div>下单时间：{{order.appointment_time | date:'yyyy-MM-dd'}}</div>
        <div>服务开始时间：{{order.start_time | date:'yyyy-MM-dd'}}</div>
    <!--    <div>订单状态：{{order.status}}</div>-->
      </a>
    </div>
    <div class="list" ng-if="role==2">
      <a class="item"  ng-repeat="order in orderList2"  href="#/tab/orderdetail/{{order.id}}">
        <span>雇主名：{{order.user_name}}</span>
        <span>服务类型：{{order.role_name}}</span>
        <div>服务价格：{{order.price_dec}}</div>
        <div>下单时间：{{order.appointment_time | date:'yyyy-MM-dd'}}</div>
        <div>服务开始时间：{{order.start_time | date:'yyyy-MM-dd'}}</div>
        <!--    <div>订单状态：{{order.status}}</div>-->
      </a>
    </div>
<!--    <ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()">
    </ion-refresher>-->
  </ion-content>
</ion-view>
